package com.endpoint.author.vo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Project: endpoint
 * @Name: ChapterAddVo
 * @Author: Jack_Li
 * @Date: 2024/7/7 17:02
 */
@Data
public class ChapterAddVo {

    //小说ID
    private Long bookId;

    //章节名
    @NotBlank
    private String chapterName;

    //章节内容
    @NotBlank
    @Length(min = 50)
    private String chapterContent;

    //是否收费;1-收费 0-免费
    @NotNull
    private Integer isVip;
}
